<?php
// 客户类型视图模型
class CustomerViewModel extends ViewModel {
	protected $viewFields = array (
		'Customer' => array (
						'*',
						'_type' => 'LEFT' 
		),
		'Customer_type' => array (
				'name'=>'typename',
				'_on' => 'Customer.typeid = Customer_type.id',
		)
	);
}


?>